package com.byedu.domain.focus.vo;

import com.byedu.domain.focus.FocusUserDO;
import com.byedu.domain.focus.vo.enumvos.FocusDepartmentTypeVO;
import com.byedu.domain.focus.vo.enumvos.FocusExecuteTypeVO;
import com.byedu.domain.focus.vo.enumvos.FocusdepaTypeVO;

import java.io.Serializable;

/**
 * Created by Luo on 2017-08-23.
 */
public class FocusUserVO implements Serializable {


    private  int uf;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }




    /*用户编号*/
    private String id;
    /*用户名*/
    private String username;
    /*密码*/
    private String password;
    /*部门*/
    private String department;
    /*职位*/
    private String position;
    /*手机号*/
    private String phone;
    /*邮箱*/
    private String email;
    /*权限*/
    private FocusDepartmentTypeVO depart;

    /*权限*/
    private FocusExecuteTypeVO execute;

    /*权限*/
    private FocusdepaTypeVO permission;

    public FocusdepaTypeVO getPermission() {
        return permission;
    }

    public void setPermission(FocusdepaTypeVO permission) {
        this.permission = permission;
    }

    public FocusUserVO() {
    }
    public FocusUserVO(FocusUserDO focusUserDO) {
        if(focusUserDO!=null) {
            this.id = focusUserDO.getId();
            this.username = focusUserDO.getUsername();
            this.password = focusUserDO.getPassword();
            this.department = focusUserDO.getDepartment();
            this.position = focusUserDO.getPosition();
            this.phone = focusUserDO.getPhone();
            this.email = focusUserDO.getEmail();
            this.uf = focusUserDO.getUf();
            this.execute = new FocusExecuteTypeVO(focusUserDO.getExecute());
            this.depart = new FocusDepartmentTypeVO(focusUserDO.getDepart());
            this.permission = new FocusdepaTypeVO(focusUserDO.getPermission());
        }
    }

    public int getUf() {
        return uf;
    }

    public void setUf(int uf) {
        this.uf = uf;
    }

    public FocusExecuteTypeVO getExecute() {
        return execute;
    }

    public void setExecute(FocusExecuteTypeVO execute) {
        this.execute = execute;
    }

    public FocusDepartmentTypeVO getDepart() {
        return depart;
    }

    public void setDepart(FocusDepartmentTypeVO depart) {
        this.depart = depart;
    }

    @Override
    public String toString() {
        return "FocusUserVO{" +
         "uf=" + uf +
         ", id='" + id + '\'' +
         ", username='" + username + '\'' +
         ", password='" + password + '\'' +
         ", department='" + department + '\'' +
         ", position='" + position + '\'' +
         ", phone='" + phone + '\'' +
         ", email='" + email + '\'' +
         ", depart=" + depart +
         ", execute=" + execute +
         ", permission=" + permission +
         '}';
    }
}
